package com.ch.forum.service.impl;

import com.ch.forum.bo.ResponseResult;
import com.ch.forum.dao.AdMapper;
import com.ch.forum.service.AdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdServiceImpl implements AdService {

    @Autowired
    private AdMapper mapper;

    @Override
    public ResponseResult findAll() {
        return new ResponseResult(true,"data", mapper.findAll());
    }
}
